/*
 * Copyright 2025 arisgo@163.com
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.arisgo.cloud.attendance.clazz.core.arrange;

import com.arisgo.cloud.attendance.clazz.vo.ClassInfoVo;

import java.util.List;

/**
 * 排班匹配策略
 * 1. 循环匹配 cycleMatch
 * > 时间以一天为准
 * > 第一员工匹配第一班，第二员工匹配第二班...
 * > 班排完后，再从第一个开始循环
 * > 员工排完后结束
 * > 员工人数少于班数，则班有空余
 * 2. 全匹配 FullMatch
 * > 时间以一天为准
 * > 每个班都匹配所有员工
 * 3. 规则匹配  RuleMatch
 * > 时间以一天为准
 * > 按照班的岗位要求，在指定范围内匹配满足条件的员工
 * > 注意岗位的人数要求
 * > 此方法以班为准，人不一定都会有班
 *
 * @author xu keqi
 * @since 2025-03-28
 */
public interface MatchStrategy {

    /**
     * 关联员工和班
     *
     * @param infos    班
     * @param staffIds 员工
     */
    void match(List<ClassInfoVo> infos, List<Long> staffIds);

}
